package com.yzl.nacos.user.common.enums;

/**
 * 部门业务信息
 *
 * @author yangzhongli
 */
public enum DeptBussinessCodeEnum{

	DEPT_EXISTING_LOWER_LEVEL_DEPT(1000001, "当前部门存在下属部门，不允许删除"),
	DEPT_EXISTING_USER(1000002, "当前部门还存在用户，不允许删除"),
	DEPT_NAME_EXIST(1000003, "部门名称已经存在"),
	DEPT_PARENT_DEPT_CANNOT_MYSELF(1000004, "上级部门不能是当前部门");
	
	private final int code;
	private final String msg;

	DeptBussinessCodeEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public int getCode() {
		return this.code;
	}

	public String getMsg() {
		return this.msg;
	}

}